<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>

<body>


	<%- include ('header.ejs') %>

	<div class="box">
		<form action="/article/addArticle" method="POST">
			<ul class="list list2">
				<li>
					<span>标题：</span>
					<input type="text" name="title">
				</li>

				<li>
					<span>内容：</span>
					<textarea name="content"></textarea>
				</li>

				<% if(user){ %>
				<li>
					<input type="hidden" name="userId" value="<%-user._id%>">
				</li>
				<% } %>

				<li>
					<span></span>
					<input type="submit" class="sbtn" value="发布">
				</li>
			</ul>

		</form>
	</div>
</body>

</html>